import L from '@/config/axios'
import Axios from 'axios';
import qs from 'qs'

// 登陆
export const login = data => L('/login', data, "POSTJSON");
// 注册
export const register = data => L('/register', data, "POSTJSON");
// 任务列表
export const tasklist = data => L('/tasklist', data,'GET');
// 发布任务
export const issue = data => L('/issue', data, "POSTJSON");
// 修改任务
export const update = data => L('/update', data, "POSTJSON");
// 获取用户tokenCount
export const getTokenCount = data => L('/balance', data, 'GET');
// 退出当前账号
export const logout = data => L('/logout', data, 'GET');